﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace OALPTool
{
    public partial class DgvDemoMain : Form
    {
        public DgvDemoMain()
        {
            InitializeComponent();
        }

        private void btn1_Click(object sender, EventArgs e)
        {
            DataGridViewDemoMain frm = new DataGridViewDemoMain();
            if (frm.InitForm() < 0) 
            {
                TSysPublic.ShowErrMsg("界面初始化失败！");
                return;
            }
            frm.ShowInTaskbar = false;

            frm.ShowDialog();
            frm.Dispose();
        }

        private void btn2_Click(object sender, EventArgs e)
        {
            DataGridViewHeadDemo frm = new DataGridViewHeadDemo();
            if (frm.InitForm() < 0) 
            {
                TSysPublic.ShowErrMsg("界面初始化失败！");
                return;
            }

            frm.ShowInTaskbar = false;

            frm.ShowDialog();
            frm.Dispose();
        }

        private void btn3_Click(object sender, EventArgs e)
        {
            DataGridViewDemoEX frm = new DataGridViewDemoEX();
            if (frm.InitForm() < 0)
            {
                TSysPublic.ShowErrMsg("界面初始化失败！");
                return;
            }
            frm.ShowInTaskbar = false;

            frm.ShowDialog();
            frm.Dispose();
        }
    }
}
